Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 9 - Camera Objects / Camera Objects Reference
Data Structures


Camera View Port Structure

You use a camera view port structure to get or set information about the view port of a camera. A camera's view port defines the rectangular portion of the view plane that is to be mapped into the area specified by the current draw context. The default settings for a view port describe the entire view plane, where the origin (-1.0, 1.0) is the upper-left corner and the width and height of the plane are both 2.0. A camera view port structure is defined by the TQ3CameraViewPort data type.

typedef struct TQ3CameraViewPort {
   TQ3Point2D                 origin;
   float                      width;
   float                      height;
} TQ3CameraViewPort;
Field Description
origin
The origin of the view port. The values of the x and y fields of this point should be between -1.0 and 1.0.
width
The width of the view port. The value in this field should be greater than 0.0 and less than 2.0.
height
The height of the view port. The value in this field should be greater than 0.0 and less than 2.0.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996